﻿<!--#include file="include/conn_f.asp"-->
<!--#include file="top.asp"-->
<div class="content">
    <%
card_id=cint(saferequest("card_id",1))
select_currency = Left(GetSafeRequest("select_currency", 0, "USD"), 3)

sql="select * from card where card_id="&card_id
Set rs=conn.execute(sql)
If Not rs.eof Then
    If rs("onsale")=0 Then
        Response.Write "<center>此卡暂停销售!"
        Response.End
    End If
Else
    Response.Write "<center>此卡不存在!"
    Response.End
End If

If Session("cust_id")<>"" Then
    Response.Redirect "order_validate.asp?select_currency="&select_currency&"&card_id="&card_id
End If
    %>
    <br />
    <form action="login.asp" method="post">
    <input name="card_id" type="hidden" value="<%=request("card_id")%>">
    <table class="card-table" style="width: 200px">
        <caption>
            <h3>
                会员入口:</h3>
        </caption>
        <tr>
            <td width="80">
                会员帐号：
            </td>
            <td width="120">
                <input name="username" size="10">
            </td>
        </tr>
        <tr>
            <td>
                会员密码：
            </td>
            <td>
                <input name="password" type="password" size="10">
            </td>
        </tr>
        <tr>
            <td>
                随机码:
            </td>
            <td>
                <input name="validatecode" size="10" maxlength="10">
                <br />
                <img src="include/captcha.asp" title="点击更换一个随机码" alt="随机码" onclick="refreshImage(this)" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;&nbsp;<a href="reg.asp" target="_blank"><font color='red'>会员注册</font>
            </td>
            <td>
                <input type="submit" value="登录" />&nbsp;<a href="forgetpw.asp">找回密码</a>
            </td>
        </tr>
    </table>
    </form>
    <p />
    <hr />
    <p />
    <script language="javascript">
        function emailcheck() {
            if (form1.email.value.length != 0) {
                if (form1.email.value.charAt(0) == "." ||
         form1.email.value.charAt(0) == "@" ||
         form1.email.value.indexOf('@', 0) == -1 ||
         form1.email.value.indexOf('.', 0) == -1 ||
         form1.email.value.indexOf(',', 0) > 0 ||
         form1.email.value.lastIndexOf("@") == form1.email.value.length - 1 ||
         form1.email.value.lastIndexOf(".") == form1.email.value.length - 1) {
                    alert("Email的格式不正确！");
                    form1.email.focus();
                    return false;
                }
            }
            else {
                alert("Email的不能为空！");
                form1.email.focus();
                return false;
            }
            return true;
        }

        function check() {

            if (!emailcheck()) {
                return false;
            }

            if (form1.username.value.length < 1) {
                alert("您还没有填写会员帐号！");
                return false;
            }
            if (form1.password.value.length < 1) {
                alert("您还没有填写密码！");
                return false;
            }
            if (form1.customer_name.value.length < 1) {
                alert("您的真实姓名没有填写！");
                return false;
            }
            if (form1.email.value.length < 1) {
                alert("您还没有填写E-mail！");
                return false;
            }
            if (form1.phone.value.length < 1) {
                alert("您还没有填写联系电话！");
                return false;
            }
            if (form1.password.value != form1.password2.value) {
                alert("您两次输入的密码不相同，请重输！");
                return false;
            }

            return true;
        }
    </script>
    <form action="regsave.asp" method="post" name="form1" onsubmit="return check()">
    <table class="card-table" style="width: 500px">
        <caption>
            <h3>
                非会员请先注册成游龙网会员:</h3>
            <font color='red' size='3'>重要提示:<br />
                请不要使用他人信用卡付款!!<br />
                信用卡借给他人使用将导致信用卡被吊销!</font><br />
            <font color="red">请填写真实有效的注册信息！填写无效信息会影响定单处理速度,或者将退款!</font>
        </caption>
        <tr>
            <td>
                会员帐号:(<font color="red">*</font>)
            </td>
            <td>
                <input name="username" size="20" maxlength="20">
            </td>
        </tr>
        <tr>
            <td>
                设立密码:(<font color="red">*</font>)
            </td>
            <td>
                <input name="password" size="10" maxlength="10" type="password">
            </td>
        </tr>
        <tr>
            <td>
                密重复码:(<font color="red">*</font>)
            </td>
            <td>
                <input name="password2" size="10" maxlength="10" type="password">
            </td>
        </tr>
        <tr>
            <td>
                真实姓名:(<font color="red">*</font>)
            </td>
            <td>
                <input name="customer_name" size="20" maxlength="20">
            </td>
        </tr>
        <tr>
            <td>
                电子邮件:(<font color="red">*</font>)
            </td>
            <td>
                <input name="email" size="30" maxlength="30"><br />
                (<font color="red">我们将发货到此e-mail</font>请勿使用163,msn,sina信箱,此类信箱收不到邮件)
            </td>
        </tr>
        <tr>
            <td>
                联系电话:(<font color="red">*</font>)
            </td>
            <td>
                <select name="phone_country">
                    <option value="美国(001)">美国(001)</option>
                    <option value="加拿大(001)">加拿大(001)</option>
                    <option value="英国(0044)">英国(0044)</option>
                    <option value="澳大利亚(0061)">澳大利亚(0061)</option>
                    <option value="新西兰(0064)">新西兰(0064)</option>
                    <option value="新加坡(0065)">新加坡(0065)</option>
                    <option value="法国(0033)">法国(0033)</option>
                    <option value="德国(0049)">德国(0049)</option>
                    <option value="比利时(0032)">比利时(0032)</option>
                    <option value="丹麦(0045)">丹麦(0045)</option>
                    <option value="爱尔兰(00353)">爱尔兰(00353)</option>
                    <option value="芬兰(00358)">芬兰(00358)</option>
                    <option value="荷兰(0031)">荷兰(0031)</option>
                    <option value="西班牙(0034)">西班牙(0034)</option>
                    <option value="瑞典(0046)">瑞典(0046)</option>
                    <option value="瑞士(0041)">瑞士(0041)</option>
                    <option value="日本(0081)">日本(0081)</option>
                    <option value="其他">其他</option>
                </select>
                <input name="phone" size="30" maxlength="40"><br />
                (若您现在国外,请填国外电话!)
            </td>
        </tr>
        <tr>
            <td>
                备用联系电话::
            </td>
            <td>
                <select name="mobile_country">
                    <option value="中国(0086)">中国(0086)</option>
                    <option value="美国(001)">美国(001)</option>
                    <option value="加拿大(001)">加拿大(001)</option>
                    <option value="英国(0044)">英国(0044)</option>
                    <option value="澳大利亚(0061)">澳大利亚(0061)</option>
                    <option value="新西兰(0064)">新西兰(0064)</option>
                    <option value="新加坡(0065)">新加坡(0065)</option>
                    <option value="法国(0033)">法国(0033)</option>
                    <option value="德国(0049)">德国(0049)</option>
                    <option value="比利时(0032)">比利时(0032)</option>
                    <option value="丹麦(0045)">丹麦(0045)</option>
                    <option value="爱尔兰(00353)">爱尔兰(00353)</option>
                    <option value="芬兰(00358)">芬兰(00358)</option>
                    <option value="荷兰(0031)">荷兰(0031)</option>
                    <option value="西班牙(0034)">西班牙(0034)</option>
                    <option value="瑞典(0046)">瑞典(0046)</option>
                    <option value="瑞士(0041)">瑞士(0041)</option>
                    <option value="日本(0081)">日本(0081)</option>
                    <option value="其他">其他</option>
                </select>
                <input name="mobile" size="30" maxlength="40"><br />
                (若您现在国内,请填国内电话!)
            </td>
        </tr>
        <tr>
            <td>
                地址:
            </td>
            <td>
                <input name="address" size="40" maxlength="50">
            </td>
        </tr>
        <tr>
            <td>
                邮编:
            </td>
            <td>
                <input name="zip" size="6" maxlength="10">
            </td>
        </tr>
        <tr>
            <td>
                QQ或MSN:
            </td>
            <td>
                <input name="qq" size="30" maxlength="30">
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <input type="submit" value="会员注册" />
            </td>
        </tr>
    </table>
    </form>
</div>
<!--#include file="bottom.asp"-->
